package com.eupmt.lab3.persistence.ibatis.dao;

import com.eupmt.lab3.domain.Rol;
import com.eupmt.lab3.persistence.ibatis.dao.ibator.IbatorRolDAO;
import com.ibatis.dao.client.Dao;
import java.util.List;

public interface RolDAO extends IbatorRolDAO, Dao {

    void saveRol(Rol rol) throws Exception;

    void insertRol(Rol rol) throws Exception;

    void updateRol(Rol rol) throws Exception;

    void deleteRol(Rol rol) throws Exception;

    Rol getRolById(int idRol) throws Exception;

    Rol getRolByNom(String nom) throws Exception;

    List<Rol> getAllRols() throws Exception;

    List<Rol> getRolsLikeNom(String nom) throws Exception;
}
